﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartWMS.Server.WarehouseManage.StockManagement.Dto
{
    /// <summary>
    /// 入库信息添加
    /// </summary>
    public class StockAdd
    {

        /// <summary>
        /// 编号
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 入库编号
        /// </summary>
        public string? WarehousingCode { get; set; }

          /// <summary>
        /// 入库类型
        /// </summary>
        public int WarehousingType { get; set; }

        /// <summary>
        /// 关联订单号
        /// </summary>
        public string?UnitOrderId { get; set; }

        /// <summary>
        /// 供应商编号
        /// </summary>
        public string?SupplierCode { get; set; }

        /// <summary>
        /// 供应商名称
        /// </summary>
        public string?SupplierName { get; set; }

        /// <summary>
        /// 供应商联系人
        /// </summary>
        public string? Contract { get; set; }

        /// <summary>
        /// 供应商电话
        /// </summary>
        public string? Phone { get; set; }

        /// <summary>
        /// 制单人
        /// </summary>
        public string? Creator { get; set; }

        /// <summary>
        /// 制单时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        ///<summary>
        /// 审核状态
        /// </summary>
        public int State { get; set; }

        ///<summary>
        /// 审核意见
        /// </summary>
        [MaxLength(200)]
        public string? Opinion { get; set; }

        ///<summary>
        /// 审核人
        /// </summary>
        public string? Reviewer { get; set; }

        ///<summary>
        /// 审核时间
        /// </summary>
        public DateTime Audittime { get; set; }

        ///<summary>
        /// 备注
        /// </summary>
        [MaxLength(200)]
        public string? Remarks { get; set; }
        
        /// <summary>
        /// 入库详细信息
        /// </summary>
        public List<InWarehouseDetailAdd>? inWarehouseDetailAdds { get; set; }

    }
}
